Let's practice some transcoding
Try to expose the other methods in our Speaker service. Test them with Postman
- Expose the SpeakerService UpdateAsync operation also as PUT request to browser
- Expose the SpeakerService Create operation also as POST request to browser
- Expose the SpeakerService Delete opearation as a DELETE request to the browser
Practice, don't open me!
PUT
rpc Update (SpeakerUpdateRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
put: "/v1/speakers/{Id}"
body: "*"
};
}
DELETE
rpc Delete (SpeakerFilterRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1/speakers/{Id}"
};
}
POST
rpc Create (SpeakerCreateRequest) returns (SpeakerResponse) {
option (google.api.http) = {
post: "/v1/speakers"
body: "*"
};
}